package cn.stylefeng.guns.sys.modular.tao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 行政区域划分等级
 * </p>
 *
 * @author 
 * @since 2019-08-24
 */
@TableName("zt_region")
public class Region implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    /**
     * code
     */
    @TableField("region_code")
    private String regionCode;

    /**
     * 区域名
     */
    @TableField("region_name")
    private String regionName;

    /**
     * 父Code
     */
    @TableField("parent_code")
    private String parentCode;

    /**
     * 等级
     */
    @TableField("level")
    private String level;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Region{" +
        "id=" + id +
        ", regionCode=" + regionCode +
        ", regionName=" + regionName +
        ", parentCode=" + parentCode +
        ", level=" + level +
        "}";
    }
}
